using jtbc;

public partial class module: jpage
{
  protected void Page_Load()
  {
    PageInit();
    string tlng = cls.getSafeString(request.querystring("site_language"));
    string tRedirectURL = cls.getSafeString(request.querystring("url"));
    if (cls.isEmpty(tRedirectURL)) tRedirectURL = cls.getActualRoute("./");
    if (!cls.isEmpty(tlng)) cookies.set("config-language", tlng);
    PageClose();
    Response.Redirect(tRedirectURL);
  }
}
